<?php

class StudentTransfer_Form_Movenew extends StudentTransfer_Form_Transfer
{
    public function init()
    {
        parent::init();
        $this->getElement('causation_kind')->setOptions(array('required'=>false));
        // 學校名稱縣市可為 null
        $this->getElement('school_name')->setOptions(array('required'=>false));
        $this->getElement('county')->setOptions(array('required'=>false));
        // label 更改為生效日期
        $this->getELement('date')->setOPtions(array('label'=>'commencement'));
        $semester = new Semester_Model_SemesterDuration();
        $yearArr = $semester->getAllYear();

        // 學年選單
        $tempArr[''] = 'select ..';
        foreach($yearArr as $id=>$val)
        $tempArr[$id] = $val;


        $this->addElement('select','selYear',array(
            'label'     => 'choose year',
            'required' => true,
            'multiOptions' => $tempArr,
        ));
        $this->setElementsBelongTo('movenew');
    }
}